package com.wzy.config;

import com.wzy.utils.IdWorker;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @description 设置雪花id生成器
 * @author wangch
 * @date 2021-08-09
 */
@Configuration
public class IdWorkConfig {

    @Bean
    public IdWorker idWorker() {
        IdWorker idWorker = new IdWorker();
        return idWorker;
    }
}
